using System;
using System.Collections;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;

using WHC.Pager.Entity;
using WHC.Hotel.Entity;

namespace WHC.Hotel.IDAL
{
	/// <summary>
	/// IGoods 的摘要说明。
	/// </summary>
	public interface IGoods : IBaseDAL<GoodsInfo>
	{         
        /// <summary>
        /// 根据商品类型获取该类型的商品列表
        /// </summary>
        /// <param name="goodsType">商品类型</param>
        /// <returns></returns>
        List<GoodsInfo> FindByGoodsType(string goodsType);
                   
        /// <summary>
        /// 根据商品名称获取商品列表
        /// </summary>
        /// <param name="goodsType">商品类型</param>
        /// <returns></returns>
        List<GoodsInfo> FindByName(string goodsName);
                        
        /// <summary>
        /// 增加库存
        /// </summary>
        /// <param name="quantity"></param>
        /// <returns></returns>
        bool AddStockQuantiy(string ItemNo, string itemName, int quantity);

        /// <summary>
        /// 增加库存
        /// </summary>
        /// <param name="quantity"></param>
        /// <returns></returns>
        bool AddStockQuantiy(string ItemNo, string itemName, int quantity, DbTransaction trans);
    }
}